marker_genes_dict = {'B': ['CD19', 'IGHM', 'CCR7', 'CD27', 'CD1C', 'CD24', 'CD38', 'CD14'],
                     'CD4+ or CD8+': ['CD4', 'IL7R', 'CD8A', 'CD8B'],
                     'Naive': ['SELL', 'LEF1', 'CCR7'],
                     'Exhausted': ['LAG3', 'TIGIT', 'PDCD1', 'HAVCR2', 'CTLA4'],
                     'Cytotoxic': ['IL2', 'GNLY', 'PRF1', 'GZMB', 'GZMK', 'IFNG', 'NKG7'],
                     'Co-stimulatory': ['CD28', 'ICOS', 'TNFRSF9'],
                     'Regulatory T': ['IL2RA', 'FOXP3', 'IKZF2', 'TGFBI'],
                     'y��T': ['TRGC1', 'TRGC2', 'TRDC'],
                     'Th17': ['IL17A', 'IL17F', 'IL22', 'CCR6', 'KLRB1', 'RORA'],
                     'Th1-like': ['STAT4', 'IL12RB2', 'IFNG'],
                     'Th2-like': ['GATA3', 'IL4'],
                     'Tfh': ['MAF', 'CXCL13', 'CXCR5', 'PDCD1'],
                     'NK': ['XCL1', 'FCGR3A', 'KLRD1', 'KLRF1'],
                     'pDC': ['CLEC4C', 'LILRB4', 'NRP1', 'CCR7'],
                     'cDC1': ['CLEC9A', 'ITGAX', 'THBD'],
                     'cDC2': ['CD1C', 'CD207', 'ITGAM'],
                     'Plasma-cell': ['MZB1', 'TAS1R3'],
                     'Monocytes': ['FCGR3A', 'FCN1', 'APOBEC3A', 'THBS1'],
                     'Macrophage': ['CD14', 'CD68', 'CD163', 'C5AR2'],
                     'Neutrophil': ['FCGR3B', 'HCAR3', 'PROK2', 'CXCL8', 'AQP9', 'G0S2', 'CXCR2', 'CXCR1', 'MME', 'ICAM1'],
                     'Mast-cell': ['SLC18A2', 'CDK15', 'CMA1', 'GCSAML', 'MS4A2']
                     }

marker_genes_dict = {
    'pDC': ['CLEC4C', 'LILRB4', 'NRP1', 'CCR7'],
    'cDC1': ['CLEC9A', 'ITGAX', 'THBD'],
    'cDC2': ['CD1C', 'CD207', 'ITGAM'],
    'Monocytes': ['FCGR3A', 'FCN1', 'APOBEC3A', 'THBS1'],
    'Macrophage': ['CD14', 'CD68', 'CD163', 'C5AR2', 'IL1B', 'SPP1', 'APOE', 'STMN1'],
    'Neutrophil': ['FCGR3B', 'HCAR3', 'PROK2', 'CXCL8', 'AQP9', 'G0S2', 'CXCR2', 'CXCR1', 'MME', 'ICAM1']
}


marker_genes_dict = {'Endo': ['ENG', 'PECAM1'],
                     'Stromal': ['COL3A1', 'DCN', 'THY1'],
                     'Myofibroblasts': ['TAGLN', 'ACTA2', 'ACTG2', 'MYH11', 'MYLK', 'MMP1', 'MMP3'],
                     'Proliferative': ['APOBEC3A', 'THBS1'],
                     'Stromal1': ['APOE', 'CCL8', 'ADAMDEC1', 'CTSC'],
                     'Stromal2': ['BMP2', 'BMP5', 'FRZB', 'POSTN', 'WNT5A'],
                     'Stromal3': ['CCDC80', 'OGN', 'FBLN1', 'EFEMP1'],
                     'Tip-like Endo': ['RGCC', 'RAMP3'],
                     'Stalk-like Endo': ['ACKR1', 'SELP'],
                     'Lymphatic endo': ['LYVE1'],
                     'Gila': ['SOX10', 'S100B', 'PLP1'],
                     'Pericyte': ['RGS5', 'CSPG4', 'ABCC9', 'KCNJ8'],
                     'SMC': ['SYNPO2', 'CRYAB', 'CNN1', 'DES']
                     }